/*
 *  main.c
 *  Angel&Demon
 *
 *  Created by Si-Mohamed Lamraoui on 01/11/10.
 *  Copyright 2010 UJF. All rights reserved.
 *
 */

#include "game.h"


#ifdef PSP
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
#endif


int main(int argc, char *argv[])
{
	#ifdef PSP
	pspDebugScreenInit();
	setupCallbacks();
	#endif
	
	int error = 0;
	printf("loading...");
	
	error = init();
	
	printf("ok\n");
	
	error = game();

	printf("ending status : %d\n", error);
	#ifdef PSP
	sceKernelSleepThread();
	sceKernelExitGame();
	#endif	
	
	return 0;
}